package com.whmall.service.crm.module.supplierchemical.dao;

import com.whmall.service.crm.entity.dto.supplierchemical.ChemicalRemarkQueryDTO;
import com.whmall.service.crm.module.supplierchemical.entity.SupplierChemicalRemarkRecordDO;
import com.whmall.service.crm.module.supplierchemical.entity.qo.SupplierChemicalRemarkRecordQO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SupplierChemicalRemarkRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SupplierChemicalRemarkRecordDO record);

    int insertSelective(SupplierChemicalRemarkRecordDO record);

    SupplierChemicalRemarkRecordDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SupplierChemicalRemarkRecordDO record);

    List<SupplierChemicalRemarkRecordQO> queryCount(SupplierChemicalRemarkRecordQO qo);

    List<SupplierChemicalRemarkRecordDO> queryLatest(SupplierChemicalRemarkRecordQO qo);

    List<SupplierChemicalRemarkRecordDO> queryByChemicalId(ChemicalRemarkQueryDTO chemicalRemarkQueryDTO);

    int queryCountByChemicalId(Long chemicalId);

}